package com.article.dto;

import lombok.Data;

import java.util.List;

@Data
public class ReturnError {
    private List<?> rows;
    private Object object;
    private Long results;
    private boolean hasError;
    private String error;
    private String errType;
    private String errUrl;

    public ReturnError() {
        super();
    }

    public ReturnError(boolean hasError, String error, Long results, List<?> rows) {
        this.hasError = hasError;
        this.error = error;
        this.results = results;
        this.rows = rows;
    }

    public ReturnError(boolean hasError, String errType, String error, String errUrl) {
        this.hasError = hasError;
        this.errType = errType;
        this.error = error;
        this.errUrl = errUrl;
    }

    public ReturnError(boolean hasError, String errType, Object object) {
        this.hasError = hasError;
        this.errType = errType;
        this.object = object;
    }

    public ReturnError(boolean hasError, String error, String errType, String errUrl, Long results, List<?> rows,
                       Object object) {
        super();
        this.rows = rows;
        this.object = object;
        this.results = results;
        this.hasError = hasError;
        this.error = error;
        this.errType = errType;
        this.errUrl = errUrl;
    }

}
